call \tab\setenv.bat

set AAA=../jground-aaa

set _AID=ooit-crm
set _TAG=1.0
call ant -buildfile %AAA%/build.xml -Ddelete_dir=/tab/java/apache-tomcat-7.0.23-ooit.net/webapps/%_AID%-%_TAG% cleanup
call ant -buildfile %AAA%/build.xml -Ddelete_dir=/tab/java/apache-tomcat-7.0.23-ooit.net/webapps/%_AID%-%_TAG%.war cleanup


cd ..\jground-base
call mvn clean 
call mvn install 
call mvn clean 

cd ..\jground-rx
call mvn clean 
call mvn install 
call mvn clean 

cd ..\jground-rx-zk
call mvn clean 
call mvn install 
call mvn clean 

cd ..\jground-rx-zk-ext
call mvn clean 
call mvn install 
call mvn clean 

cd ..\rx-apps-crm

set LOCAL_FILE=%CD_ROOT%a_proj\ws\maven_local\repository\org\jground\rx\%_AID%\%_TAG%\%_AID%-%_TAG%.war

call mvn -Dversion=%_TAG% -DartifactId=%_AID% clean
call mvn -Dversion=%_TAG% -DartifactId=%_AID% install
call mvn -Dversion=%_TAG% -DartifactId=%_AID% clean

call mvn -Dversion=%_TAG% -DartifactId=%_AID% install
call mvn -Dversion=%_TAG% -DartifactId=%_AID% clean


call ant -buildfile %AAA%/build.xml -Dbackup_dir=/tab/java/apache-tomcat-7.0.23-ooit.net/webapps -Dlocal_file=%LOCAL_FILE% copyfile




pause



